	<div id='top-fixed'>
	<div id='top-bar'>
		<ul class="top-bar-left fl">
			<li><a href="" target='_blank'>360搜索</a></li>
			<li><a href="" target='_blank'>360官方网站</a></li>
		</ul>
		<ul class='top-bar-right fr'>
			<if condition="isset($_SESSION['username']) && isset($_SESSION['uid'])">
	 			<li class='userinfo'>
					<a href="{:U('Member/index',array('uid'=>$_SESSION['uid']))}" class='uname'>{$Think.session.username}</a>
				</li>
				<li style='color:#eaeaf1'>|</li>
				<li><a href="{:U('Login/out')}">退出</a></li> 
			<else />
				<li><a href="" class='login'>登录</a></li>
				<li style='color:#eaeaf1'>|</li>
				<li><a href="" class='register'>注册</a></li>	
			</if>
		</ul>
	</div>
<!-- 提问搜索框 -->
	<div id='search'>
		<div class='logo'><a href="{:U('Index/index')}" class='logo'></a></div>
		<form action="{:U('Search/index')}" method='get'>
			<input type="text" name='search' class='sech-cons'/>
			<input type="submit" class='sech-btn'/>
		</form>
		<a href="{:U('Ask/index')}" class='ask-btn'></a>
	</div>
<!-- 提问搜索框结束 -->
</div>
<div style='height:110px'></div>
<!----------导航条---------->
<div id='nav'>
	<ul class='list'>
		<li class='nav-sel'><a href="{:U('Index/index')}" class='home'>问答首页</a></li>
		<li class='nav-sel ask-cate'>
			<a href="" class='ask-list'><span>问题库</span><i></i></a>
			<ul class='hidden'>
				<volist name='topCate' id='vo'>
				<li>
					<a href="{:U('List/index',array('cid'=>$vo['cid'],'where'=>0))}">{$vo.cname}</a>
				</li>
				</volist>
			</ul>
		</li>
	</ul>
	<p class='total'>累计提问：{$askNum}</p>
</div>

	<!----------注册框---------->
	<div id='register' class='hidden'>
		<div class='reg-title'>
			<p>欢迎注册后盾问答</p>
			<a href="" title='关闭' class='close-window'></a>
		</div>
		<div id='reg-wrap'>
			<div class='reg-left'>
				<ul>
					<li><span>账号注册</span></li>
				</ul>
				<div class='reg-l-bottom'>
					已有账号，<a href="" id='login-now'>马上登录</a>
				</div>
			</div>
			<div class='reg-right'>
				<form action="{:U('Reg/index')}" method='post' id='reg' name='register'>
					<ul>
						<li>
							<label for="reg-uname">用户名</label>
							<input type="text" name='username' id='reg-uname' ajaxurl="{:U('Reg/check_user')}" datatype="s2-14" nullmsg="请填写2-14个字符：字母、数字或中文" errormsg="请填写2-14个字符：字母、数字或中文" sucmsg='验证通过' />
							<span class="Validform_checktip">2-14个字符：字母、数字或中文</span>
						</li>
						<li>
							<label for="reg-pwd">密码</label>
							<input type="password" name='password' id='reg-pwd' datatype="s2-14" nullmsg="请填写6-20个字符:字母、数字或下划线 _" errormsg="请填写6-20个字符:字母、数字或下划线 _" sucmsg='验证通过' />
							<span class="Validform_checktip">6-20个字符:字母、数字或下划线 _</span>
						</li>
						<li>
							<label for="reg-pwded">确认密码</label>
							<input type="password" name='pwded' id='reg-pwded' datatype="*"  recheck="password" nullmsg="请再输入一次密码！" errormsg="您两次输入的账号密码不一致！"  sucmsg='验证通过' />
							<span class="Validform_checktip">请再输入一次密码</span>
						</li>
						<li>
							<label for="reg-verify">验证码</label>
							<input type="text" name='verify' id='reg-verify' ajaxurl="{:U('Reg/check_verify')}"  datatype="*" nullmsg="请输入验证码" errormsg="验证码不正确"  sucmsg='验证通过' />
							<img src="{:U('Reg/code')}" width='99' height='35' alt="验证码" id='verify-img' onclick="this.src=this.src+'?'+Math.random()"  />
							<span class="Validform_checktip">请输入图中的字母或数字，不区分大小写</span>
						</li>
						<li class='submit'>
							<input type="submit" value='立即注册'/>
						</li>
					</ul>
				</form>
			</div>
		</div>
	</div>

	<!----------登录框---------->	
	<div id='login' class='hidden'>
		<div class='login-title'>
			<p>欢迎您登录后盾问答</p>
			<a href="" title='关闭' class='close-window'></a>
		</div>
		<div class='login-form'>
			<span id='login-msg' style="background: none;"></span>
			<!-- 登录FORM -->
			<form id='logincon' action="{:U('Login/index')}" method='post' name='login'>
				<ul>
					<li>
						<label for="login-acc">账号</label>
						<input type="text" name='account' class='input' id='login-acc' ajaxurl="{:U('Login/check_user')}" datatype="s2-14" nullmsg="请填写2-14个字符：字母、数字或中文" errormsg="请填写2-14个字符：字母、数字或中文" sucmsg='' />
					</li>
					<li>
						<label for="login-pwd">密码</label>
						<input type="password" name='password' class='input' id='login-pwd' datatype="s2-14" nullmsg="请填写6-20个字符:字母、数字或下划线 _" errormsg="请填写6-20个字符:字母、数字或下划线 _" />
					</li>
					<li class='login-auto'>
						<label for="auto-login">
							<input type="checkbox" checked='checked' name='auto'  id='auto-login'/>&nbsp;下一次自动登录
						</label>
						<a href="" id='regis-now'>注册新账号</a>
					</li>
					<li>
						<input type="submit" value='' id='login-btn'/>
					</li>
				</ul>
			</form>
		</div>
	</div>

<!--背景遮罩--><div id='background' class='hidden'></div>